package com.qidian.mes.sys.controller;

import com.qidian.mes.sys.service.DictDataService;
import com.qidian.mes.util.pojo.MESResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 戴着假发的程序员
 * @Company 起点编程
 * @Time 2023/10/25 15:04
 * @Description
 */
@CrossOrigin
@RestController
@RequestMapping("/dictData")
public class DictDataController {
    @Autowired
    private DictDataService dictDataService;

    @GetMapping("/list")
    public MESResult list(Long dictId){
        return dictDataService.list(dictId);
    }
}
